package com.spzx.auth.form;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

/**
 * 用户登录对象
 *
 * @author gaozz
 */
public class LoginBody
{
    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空")
    @Size(min = 11, max = 11, message = "用户名的长度必须为11个字符")
    private String username;

    /**
     * 用户密码
     */
    @NotBlank(message = "密码不能为空")
    @Size(min = 5, max = 20, message = "密码长度必须在5到20个字符之间")
    private String password;

    public String getUsername()
    {
        return username;
    }

    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getPassword()
    {
        return password;
    }

    public void setPassword(String password)
    {
        this.password = password;
    }
}
